package com.qf.service.serviceImpl;

import com.qf.dao.ArchivesDao;
import com.qf.pojo.Archives;
import com.qf.pojo.Page;
import com.qf.service.ArchivesService;

import java.util.List;

/**
 * @author 86198
 * @version V1.0
 * @Project Java_qf
 * @Package com.qf.service.serviceImpl
 * @Description:
 * @Date 2022/5/27 20:27
 */
public class ArchivesServiceImpl implements ArchivesService {
    private ArchivesDao archivesdao;
    public ArchivesServiceImpl(ArchivesDao archivesdao){
        this.archivesdao = archivesdao;
    }
    @Override
    public List<Archives> showAll(Page page) {
        return archivesdao.showAll(page);
    }

    @Override
    public int totalCounts() {
        return archivesdao.totalCounts();
    }

    @Override
    public void update(Archives archives) {
        System.out.println(archives);
         archivesdao.update(archives);
    }

    @Override
    public Archives showOne(int id) {
        return archivesdao.showOne(id);
    }
}
